package top.zywork.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

/**
 * 分销用户信息Query类<br/>
 *
 * 创建于2018-12-25<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class DistributionUserQuery extends PageQuery {

    private Long userId;
    private Long userIdMin;
    private Long userIdMax;
    private String phone;
    private String email;
    private Integer level;
    private Integer levelMin;
    private Integer levelMax;
    private String nickname;
    private String headicon;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTimeMin;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTimeMax;

	/**
	 * 多个编(只用于单表，关联表不适用)
	 */
	private Long[] ids;
}
